﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;



namespace GestorDeFlotasDesktop
{
    public partial class VentanaInicio : Form
    {
        public Base cBase;
       
        public VentanaInicio()
        {
            InitializeComponent();
         }


        private void VentanaInicio_Load(object sender, EventArgs e)
        {
             cBase = new Base();
            try
            {
                cBase.conxionBase();
            }
            catch (Exception f){
                MessageBox.Show(f.Message);
                Application.Exit();
            }
        }

        private void btnInicioAceptar_Click(object sender, EventArgs e)
        {

                new Login.Login(cBase).Show();
                this.Visible = false;

        }

    }
}
